from django.conf.urls import patterns, url
from application import views

urlpatterns = patterns('',
    url(r'^$', views.login, name="login"),
    url(r'^index/$', views.index, name="index"),
    url(r'^groups/$', views.groups, name="groups"),
    url(r'^courses/$', views.courses, name="courses"),
    url(r'^rewards/$', views.rewards, name="rewards"),
    url(r'^users/$', views.users, name="users"),
    url(r'^ifgroup/$', views.ifgroup, name="ifgroup"),
    url(r'^publisher/$', views.publisher, name="publisher"),
    url(r'^addbad/$', views.addbad, name="addbad"),
    url(r'^badwarning/$', views.badwarning, name="badwarning"),
    url(r'^bad_course_warning/$', views.bad_course_warning, name="bad_course_warning"),
    url(r'^bad_reward_warning/$', views.bad_reward_warning, name="bad_reward_warning"),
    url(r'^bad_user_warning/$', views.bad_user_warning, name="bad_user_warning"),
    url(r'^notbad/$', views.notbad, name="notbad"),
    url(r'^pass_group/$', views.pass_group, name="pass_group"),
    url(r'^nopass/$', views.nopass, name="nopass"),
    url(r'^passPublisher/$', views.passPublisher, name="passPublisher"),
    url(r'^notPublisher/$', views.notPublisher, name="notPublisher"),

    url(r'^invite/$', views.invite, name="invite"),
    url(r'^passuser/$', views.passuser, name="passuser"),
    url(r'^notuser/$', views.notuser, name="notuser"),


    url(r'^css/(?P<path>.*)$', 'django.views.static.serve', 
        { 'document_root': 'e:/Demo/templates/public/css' }
    ),
    url(r'^js/(?P<path>.*)$', 'django.views.static.serve', 
        { 'document_root': 'e:/Demo/templates/public/js' }
    ),
    url(r'^fonts/(?P<path>.*)$', 'django.views.static.serve', 
        { 'document_root': 'e:/Demo/templates/public/fonts' }
    ), 
    url(r'^img/(?P<path>.*)$', 'django.views.static.serve', 
        { 'document_root': 'e:/Demo/templates/public/img' }
    ), 
    url(r'^ID/(?P<path>.*)$', 'django.views.static.serve', 
        { 'document_root': 'e:/Demo/templates/picture/ID/' }
    ), 
    url(r'^avatar/(?P<path>.*)$', 'django.views.static.serve', 
        { 'document_root': 'e:/Demo/templates/picture/avatar/' }
    ), 
    url(r'^course/(?P<path>.*)$', 'django.views.static.serve', 
        { 'document_root': 'e:/Demo/templates/picture/course/' }
    ), 
)
